package startup

import (
	"gitee.com/flycash/ai-gateway-demo/internal/repository"
	"gitee.com/flycash/ai-gateway-demo/internal/repository/dao"
	"github.com/ego-component/egorm"
)

func InitPromptRepo(db *egorm.Component)repository.PromptConfigRepo{
	err := dao.InitTable(db)
	if err != nil {
		panic(err)
	}
	promptDao := dao.NewPromptDAO(db)
	return repository.NewPromptConfigRepo(promptDao)
}
